<?php
Route::group([
    'namespace' => 'Wechat',
    'prefix' => 'wechat'
], function () {
    // 主页。
    Route::get('home', [
        'as' => 'WechatHome',
        'uses' => 'HomeController@home'
    ]);

    Route::get('advice', [
        'as' => 'WechatAdvice',
        'uses' => 'HomeController@advice'
    ]);

    Route::post('save-advice', [
        'as' => 'WechatAdviceAction',
        'uses' => 'HomeController@saveAdvice'
    ]);

    Route::get('apply', [
        'as' => 'WechatApply',
        'uses' => 'HomeController@apply'
    ]);

    Route::get('share', [
        'as' => 'WechatShare',
        'uses' => 'HomeController@share'
    ]);

    Route::post('apply', [
        'as' => 'WechatApplyAction',
        'uses' => 'HomeController@saveApply'
    ]);
});